package com.winit.openapi.pms;

import java.text.ParseException;
import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestMapping;

import com.winit.openapi.controller.BaseController;
import com.winit.openapi.model.RequestMsg;
import com.winit.openapi.model.ResponseMsg;
import com.winit.pms.spi.v2.base.EgdSlaLimitService;
import com.winit.pms.spi.v2.base.command.EgdSlaLimitQueryCommand;
import com.winit.pms.spi.v2.base.vo.EgdSlaLimitVo;

/**
 * EGD sla限制
 * 
 * @author hui.li2 2018年3月1日 下午5:50:01
 * @since 1.0
 */
@Controller
@RequestMapping("/pms/egdSlaLimit")
public class EgdSlaLimitController extends BaseController {

    @Resource
    private EgdSlaLimitService egdSlaLimitService;

    /**
     * 查询egdsla限制列表
     * 
     * @param requestMsg
     * @param responseMsg
     * @return
     * @throws ParseException
     */
    @RequestMapping(value = "/queryEgdSlaLimitList")
    public String queryEgdSlaLimitList(@ModelAttribute RequestMsg requestMsg, @ModelAttribute ResponseMsg responseMsg)
                                                                                                                      throws ParseException {
        EgdSlaLimitQueryCommand command = new EgdSlaLimitQueryCommand();
        List<EgdSlaLimitVo> voList = egdSlaLimitService.queryEgdSlaLimitList(command);
        responseMsg.setData(voList);

        return SUCCESS;
    }

}
